package com.wms.entity.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;

public enum  BlogState {

    PENDING(0, "待发布"),
    ONLINE(1, "上架"),
    OFFLINE(2, "下架");



    @EnumValue
    private final int value;
    private String desc;

    BlogState(int value, String desc){
        this.desc = desc;
        this.value = value;
    }

    public int getValue() {
        return value;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

}
